package com.yl.paymanagement.controller;


import com.yl.paymanagement.pojo.RechargeRecoding;
import com.yl.paymanagement.pojo.ResultEntity;
import com.yl.paymanagement.service.RechargeRecodingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/RechargRecoding")
@RefreshScope
public class RechargRecodingController {
    @Autowired
    RechargeRecodingService rechargeRecodingService;

    @GetMapping("/{id}/{currentPage}")
    public ResultEntity<List<RechargeRecoding>> findlistById(@PathVariable("id") Long id,@PathVariable("currentPage") int currentPage){

        return  new ResultEntity(200,"充值记录集合",rechargeRecodingService.findListById(id ,currentPage));
    }

}
